package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.Category;
import com.googlecode.flealancemarket.service.commands.SaveCategory;
import com.googlecode.flealancemarket.service.facades.CategoriesFacade;

public class SaveCategoryImpl implements SaveCategory {

    private Category category;
    private CategoriesFacade facade;
    
    public void setCategory(Category category) {
        this.category = category;
    }

    public Category execute() {
        return facade.saveCategoryWithoutGroup(category);
    }
    
    public void setFacade(CategoriesFacade facade){
        this.facade = facade;
    }
    
}
